package com.online.service;

import com.online.entity.MultiQuestion;

import java.util.List;

public interface MultiQuestionService {
    /**
     * 增加选择题
     * @param multiQuestion
     * @return
     */
    int add(MultiQuestion multiQuestion);

    /**
     * 查询最后一条记录的questionId
     * @return
     */
    MultiQuestion findOnlyQuestionId();

    List<MultiQuestion> findByIdAndType(Integer paperId);

    List<Integer> findBySubject(String subject, Integer changeNumber);
}
